<%@page import="com.kobi.data.Book"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>书籍信息列表</title>
<style>
	h2{
		text-align: center;
		color: red;
	}
	.box{
		margin: 0 auto;
		text-align: center;
		width: 50%;
		margin-top: 100px;
	}
</style>
</head>
<body style="background-image: url(img/投票页面背景图.jpg);">
	<div class = "content">
		<div class = "box">
			<h2>书籍信息管理</h2>
			<table  border="2" cellspacing="0">
				<tr>
					<th><h2>标题</h2></th>
					<th><h2>作者</h2></th>
					<th><h2>出版社</h2></th>
					<th><h2>价格</h2></th>
					<th><h2>操作</h2></th>
				</tr>
			<%
			Book book=(Book)request.getAttribute("book");
				%>
				<tr style="color: red;">
					<td><%=book.getTitle() %></td>
					<td><%=book.getAuthor() %></td>
					<td><%=book.getPublisher() %></td>
					<td><%=book.getPrice() %></td>
					<td>
						<a href = "selectBookById?bookid=<%=book.getBookid() %>">修改</a>
					</td>
				</tr>
			</table>
		    <br>
			<form action="powerchose.html">
				<input type="submit" value="返回">
			</form>
		</div>
	</div>
</body>
</html>
